package org.dromara.run.domain.bo;

import org.dromara.run.domain.ActivityForm;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.sql.Time;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 阳光跑跑步形式规则配置业务对象 phy_run_activity_form
 *
 * @author chl
 * @date 2024-09-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ActivityForm.class, reverseConvertGenerate = false)
public class ActivityFormBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long activityId;

    /**
     * 租户编号
     */
    private String tenantId;

    /**
     * 活动形式名称
     */
//    @NotBlank(message = "活动形式名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String activityName;

    /**
     * 有效跑步次数
     */
//    @NotNull(message = "有效跑步次数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long requiredTimes;

    /**
     * 跑步里程范围起始
     */
//    @NotNull(message = "跑步里程范围起始不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long distanceBegin;

    /**
     * 跑步里程范围结束
     */
//    @NotNull(message = "跑步里程范围结束不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long distanceEnd;

    /**
     * 跑步时间起始
     */
//    @NotNull(message = "跑步时间起始不能为空", groups = { AddGroup.class, EditGroup.class })
    private Time runTimeBegin;

    /**
     * 跑步时间结束
     */
//    @NotNull(message = "跑步时间结束不能为空", groups = { AddGroup.class, EditGroup.class })
    private Time runTimeEnd;

    /**
     * 配速标准开始
     */
//    @NotBlank(message = "配速标准开始不能为空", groups = { AddGroup.class, EditGroup.class })
    private String paceStandardBegin;

    /**
     * 配速标准结束
     */
//    @NotBlank(message = "配速标准结束不能为空", groups = { AddGroup.class, EditGroup.class })
    private String paceStandardEnd;

}
